#!/usr/bin/env bash

#git
alias gst='git status'
alias gsti='git status --ignored'
alias gsl='git stash list'
alias grmc='git \rm --cached'
alias grm='git rm'
alias grs='git reset --soft'
alias grt='git remote'
alias grp='git rev-parse'
alias gplr='gpl --rebase'
alias gll="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gl='git log --oneline'
alias glgs='git log -S'
alias glsp='git log -p -S'
alias gdf="git diff --color $(git diff --ws-error-highlight=new,old &>/dev/null && echo --ws-error-highlight=new,old)"
alias gdfc='gdff --cached'
alias gbr='git branch'
alias gceu='git config --global user.name "lzf" && git config --global user.email "liuzhanfei166@126.com"'
alias gci='git commit'
alias grb='git rebase'
alias grbc='git rebase --continue'
alias gcii='git -c user.name="lzf" -c user.email="liuzhanfei166@126.com" commit'
alias gcia='git commit --amend -C HEAD'
alias gciac='git commit --amend -c HEAD'
alias gciap='git commit --amend -C HEAD && git push -f'
alias gclo='git clone'
alias gcle='git clean'
alias gco='git checkout'
alias gfe='git fetch'
alias gsm='git submodule'
alias gsb='git subtree'
alias gsh='git stash'
alias gme='git merge'
alias gcp='git cherry-pick'
alias gcf='git config'
